import {
  exportUrl,
  getAreaCodeList,
  getOrderTypeList,
  getOrderStatusList,
  getQualityGenereteStatusList,
  getQualityResultList,
  getErpStatusList,
  getCurrentWarehouseCode,
  getQualityMaterialStatus,
  getQualityStatus,
  getLocationCodeList
} from "@/api/outbound/wmsOutTask"
import { getDict } from "@/api/common";
// 列表头按钮配置
export const operateList = [
  // {
  //   name: $i18n.t("common.export"),
  //   type: "primary",
  //   icon: "el-icon-download",
  //   handleName: "export", //点击时返回的标识
  //   url: exportUrl
  //   //auth: "auth:operlog:export", //权限字段
  // },
  //
  // {
  //   name: $i18n.t("common.add"),
  //   type: "primary",
  //   icon: "el-icon-circle-plus-outline",
  //   handleName: "add", // 点击时返回的标识
  //   auth: "auth:wms:wmsOutTask:add" //权限字段
  // },
  // {
  //   name: $i18n.t("common.delete"),
  //   type: "danger",
  //   icon: "el-icon-delete",
  //   handleName: "delete",
  //   isMultiple: true, // isSingle 表示必须选择一项//isMultiple: true, // 表示必须多选
  //   auth: "auth:wms:wmsOutTask:delete" //权限字段
  // },
  // {
  //   name: $i18n.t("common.print"),
  //   type: "primary",
  //   icon: "el-icon-takeaway-box",
  //   handleName: "print", //点击时返回的标识
  //   disabled: (data) => data.length != 1,
  //   // auth: "wms:wmsPickingTaskDetail:print", //权限字段
  // },
  // {
  //   name: $i18n.t("wmsOutTask.accountPosting"),
  //   type: "primary",
  //   icon: "el-icon-circle-plus-outline",
  //   handleName: "account",
  //   isSingle: true, // isSingle 表示必须选择一项//isMultiple: true, // 表示必须多选
  //   auth: "auth:wms:wmsOutTask:account" //权限字段
  // },
  // {
  //   name: "领料新增",
  //   type: "primary",
  //   icon: "el-icon-circle-plus-outline",
  //   handleName: "add", // 点击时返回的标识
  //   //auth: "auth:wms:wsmsInTask:add" //权限字段
  // },
]
// 行末按钮配置
export const rowConfig = [
  {
    name: "同意出库",
    type: "primary",
    class: "row-btn-primary",
    handleName: "edit", //点击时返回的标识
    auth: "auth:wms:wmsOutTask:edit" //权限字段
  },
]
export const rowCenConfig = [
  {
    name: "查看图片",
    type: "primary",
    class: "row-btn-primary",
    handleName: "showPhoto", //点击时返回的标识
  },
]
// 搜索条件配置
export const searchConfig = {
  inline: true,
  formDesc: {
    searchNo: {
      type: "input",
      label: "编码"
    },
    modelName: {
      type: "input",
      label: "车型"
    },
  }
}

